from django.contrib import admin

from blog.models import BlogCategory, BlogComment, Blog


# Register your models here.
class BlogCategoryAdmin(admin.ModelAdmin):
    list_display = ['name']


class BlogAdmin(admin.ModelAdmin):
    list_display = ['title', 'content', 'created_at', 'updated_at', 'author', 'category']


class BlogCommentAdmin(admin.ModelAdmin):
    list_display = ['content', 'created_at', 'updated_at', 'blog', 'author']


admin.site.register(BlogCategory, BlogCategoryAdmin)
admin.site.register(BlogComment, BlogCommentAdmin)
admin.site.register(Blog, BlogAdmin)
